#include"lottery_sys.h"
void show_hist_lott(Buyer_t* user,L_buyed_t* buyed_head)
{
	int i = 0;
	if(user == NULL || buyed_head == NULL)
		return;
	L_buyed_t* tmp = buyed_head -> next;
	while(tmp != NULL )
	{
		if(!strcmp(user -> B_name , tmp -> buyer))
		{
			printf("彩民帐号：%s\t",tmp -> buyer);
			printf("彩票期号：%ld\t",tmp -> date);
			printf("彩票ID ：%ld\t",tmp -> ID);
			printf("彩票单价：%d\n",tmp -> L_unit_price);
			while(i < 5)
			printf("%d\t",tmp -> chose_nums[i++]);
			i = 0;
			printf("\n");
			//		printf("发布日期：%d\n",user -> B_lottery -> L_startt);
			//		printf("开奖日期：%d\n",user -> B_lottery -> L_opent);
		}
		tmp = tmp -> next;
	}
}
